import request from '@/utils/request.js';


/**一级抽签**/



/**
 * 我的抽签码/结果
 */
export function drawMycode(data){
	return request({
		url:"/drawbuy/mycode",
		method:'post',
		data
	})
}

// 抽签结果
export function qualification(data){
	return request({
		url:"/drawbuy/qualification",
		method:'post',
		data
	})
}

//积分兑换抽签次数
export function scorechange(data){
	return request({
		url:"/drawbuy/scorechange",
		method:'post',
		data
	})
}

//分享截图助力
export function addshare(data){
	return request({
		url:"/drawbuy/addshare",
		method:'post',
		data
	})
}

//分享截图助力列表
export function sharelist(data){
	return request({
		url:"/drawbuy/sharelist",
		method:'post',
		data
	})
}

//好友助力列表
export function friendhehplist(data){
	return request({
		url:"/drawbuy/friendhehplist",
		method:'post',
		data
	})
}

//抽签排行榜
export function coderank(data){
	return request({
		url:"/drawbuy/coderank",
		method:'post',
		data
	})
}

//抽签排行榜
export function joinuser(data){
	return request({
		url:"/drawbuy/joinuser",
		method:'post',
		data
	})
}

export function getDraw(id){
	return request({
		url:"/draw/get",
		method:"post",
		data:{
			id
		}
	})
}

export function draw(data){
	return request({
		url:"/draw/draw",
		method:"post",
		data
	})
}


export function drawLog(id){
	return request({
		url:"/draw/drawLog",
		method:"post",
		data:{
			id
		}
	})
}


export function drawRecord(id){
	return request({
		url:"/draw/drawRecord",
		method:"post",
		data:{
			id
		}
	})
}

export function invited_record(id){
	return request({
		url:"/draw/invited_record",
		method:"post",
		data:{
			id
		}
	})
}
